package com.mhy.rest.service.impl;

import com.mhy.rest.mapper.BookMapper;
import com.mhy.rest.pojo.Book;
import com.mhy.rest.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class BookServiceImpl implements BookService {

    @Autowired
    BookMapper bookMapper;

    @Override
    public List<Book> queryAllBook() {
        List<Book> books = bookMapper.selectAll();
        return books;
    }
}
